package edu.sandau.app.basic.golbal;

public class GlobalEnum {
    public enum OperateResult {
        SUCC,
        UNSUSS,
    }
    public enum ErrorCode {
        Ok,
        UNKNOWN,
        
        // 用户相关错误代码
        USER_ADD_FAIL,
        USER_MODIFY_FAIL,
        USER_DELETE_FAIL,
        USER_QUERY_FAIL,
        USER_NOT_FOUND,
        USER_ALREADY_EXISTS,
        
        // 菜品相关错误代码
        DISH_ADD_FAIL,
        DISH_MODIFY_FAIL,
        DISH_DELETE_FAIL,
        DISH_QUERY_FAIL,
        DISH_NOT_FOUND,
        DISH_OUT_OF_STOCK,
        
        // 购物车相关错误代码
        CART_ADD_FAIL,
        CART_MODIFY_FAIL,
        CART_DELETE_FAIL,
        CART_QUERY_FAIL,
        CART_EMPTY,
        
        // 订单相关错误代码
        ORDER_CREATE_FAIL,
        ORDER_MODIFY_FAIL,
        ORDER_DELETE_FAIL,
        ORDER_QUERY_FAIL,
        ORDER_NOT_FOUND,
        ORDER_STATUS_INVALID,
        ORDER_CANCEL_FAIL,
        ORDER_PAY_FAIL,
        
        // 订单详情相关错误代码
        ORDER_DETAIL_CREATE_FAIL,
        ORDER_DETAIL_DELETE_FAIL,
        ORDER_DETAIL_QUERY_FAIL,
        ORDER_DETAIL_NOT_FOUND,
        
        // 评论相关错误代码
        COMMENT_ADD_FAIL,
        COMMENT_DELETE_FAIL,
        COMMENT_QUERY_FAIL,
        COMMENT_NOT_FOUND,
        
        // 收藏相关错误代码
        FAVORITE_ADD_FAIL,
        FAVORITE_DELETE_FAIL,
        FAVORITE_QUERY_FAIL,
        FAVORITE_NOT_FOUND,
        FAVORITE_ALREADY_EXISTS,
        
        // 文件相关错误代码
        FILE_UPLOAD_FAIL,
    }
}
